﻿<Window x:Class="WpfListingClientSociete.Formulaire"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Formulaire" Height="565" Width="446" FontWeight="Bold">
    <Window.Resources>
        <SolidColorBrush x:Key="DisabledBackgroundBrush" Color="#EEE" />
        <SolidColorBrush x:Key="WindowBackgroundBrush" Color="Beige" />
        <SolidColorBrush x:Key="SolidBorderBrush" Color="#888" />
        <Style TargetType="Button">
            <Setter Property="Background" Value="Red" />
        </Style>
        <Style TargetType="Label">
            <Setter Property="Foreground" Value="Orange" />
        </Style>
        <Style TargetType="GroupBox">
            <Setter Property="Foreground" Value="Red" />
        </Style>
        <Style TargetType="{x:Type TextBox}">
            <Setter Property="SnapsToDevicePixels" Value="True"/>
            <Setter Property="OverridesDefaultStyle" Value="True"/>
            <Setter Property="KeyboardNavigation.TabNavigation" Value="None"/>
            <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
            <Setter Property="MinWidth" Value="120"/>
            <Setter Property="MinHeight" Value="20"/>
            <Setter Property="AllowDrop" Value="true"/>
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="{x:Type TextBoxBase}">
                        <Border 
          Name="Border"
          CornerRadius="5" 
          Padding="2"
          Background="{StaticResource WindowBackgroundBrush}"
          BorderBrush="{StaticResource SolidBorderBrush}"
          BorderThickness="1" >
                            <ScrollViewer Margin="0" x:Name="PART_ContentHost"/>
                        </Border>
                        <ControlTemplate.Triggers>
                            <Trigger Property="IsEnabled" Value="False">
                                <Setter TargetName="Border" Property="Background" Value="{StaticResource DisabledBackgroundBrush}"/>
                                <Setter TargetName="Border" Property="BorderBrush" Value="{StaticResource DisabledBackgroundBrush}"/>
                                <Setter Property="Foreground" Value="{StaticResource DisabledForegroundBrush}"/>
                            </Trigger>
                        </ControlTemplate.Triggers>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>
    </Window.Resources>
    <Grid Name="grdAjout" Height="639" Width="433">
        <Image Source="C:\Users\Ludovic\Pictures\manchester_united_home_long_sleeve_jersey_2010_2011.jpg" Height="400" HorizontalAlignment="Left" Margin="20,11,0,0" Name="image1" Stretch="Fill" VerticalAlignment="Top" Width="400" />
        <Label Content="Nom" Height="28" HorizontalAlignment="Left" Margin="24,26,0,0" Name="labelNom" VerticalAlignment="Top" />
        <Label Content="Prenom" Height="28" HorizontalAlignment="Left" Margin="234,26,0,0" Name="labelPrenom" VerticalAlignment="Top" />
        <TextBox Height="23" HorizontalAlignment="Left" Margin="86,28,0,0" Name="txtNom" Text="{Binding Path=Nom, Mode=TwoWay, UpdateSourceTrigger=LostFocus}" VerticalAlignment="Top" Width="120" />
        <TextBox Height="23" HorizontalAlignment="Left" Margin="291,28,0,0" Name="txtPrenom" Text="{Binding Path=Prenom, Mode=TwoWay, UpdateSourceTrigger=LostFocus}" VerticalAlignment="Top" Width="120" />
        <GroupBox Header="Adresse" Height="158" HorizontalAlignment="Left" Margin="12,70,0,0" Name="groupBoxAdresse" VerticalAlignment="Top" Width="412">
            <Grid Height="129">
                <Grid.RowDefinitions>
                    <RowDefinition Height="61*" />
                    <RowDefinition Height="68*" />
                </Grid.RowDefinitions>
                <Label Content="Ville" Height="28" HorizontalAlignment="Left" Margin="6,9,0,0" Name="labelVille" VerticalAlignment="Top" />
                <Label Content="Rue" HorizontalAlignment="Left" Margin="216,9,0,21" Name="labelRue" />
                <Label Content="Num" Height="28" HorizontalAlignment="Left" Margin="6,0,0,47" Name="labelNum" VerticalAlignment="Bottom" Grid.RowSpan="2" />
                <Label Content="Pays" Height="28" HorizontalAlignment="Left" Margin="216,51,0,0" Name="labelPays" VerticalAlignment="Top" Grid.RowSpan="2" />
                <Label Content="CP" Height="28" HorizontalAlignment="Right" Margin="0,34,370,0" Name="labelCP" VerticalAlignment="Top" Grid.Row="1" />
                <TextBox Height="23" HorizontalAlignment="Left" Margin="54,9,0,0" Name="txtVille" Text="{Binding Path=Ville, Mode=TwoWay, UpdateSourceTrigger=LostFocus}" VerticalAlignment="Top" Width="120" />
                <TextBox Height="23" HorizontalAlignment="Left" Margin="274,11,0,0" Name="txtRue" Text="{Binding Path=Rue, Mode=TwoWay, UpdateSourceTrigger=LostFocus}" VerticalAlignment="Top" Width="120" />
                <TextBox Height="23" HorizontalAlignment="Left" Margin="54,56,0,0" Name="txtNum" Text="{Binding Path=Num, Mode=TwoWay, UpdateSourceTrigger=LostFocus}" VerticalAlignment="Top" Width="120" Grid.RowSpan="2" />
                <TextBox Height="23" HorizontalAlignment="Left" Margin="54,36,0,0" Name="txtCP" Text="{Binding Path=CP, Mode=TwoWay, UpdateSourceTrigger=LostFocus}" VerticalAlignment="Top" Width="65" Grid.Row="1" />
                <TextBox Height="23" HorizontalAlignment="Left" Margin="273,53,0,0" Name="txtPays" Text="{Binding Path=Pays, Mode=TwoWay, UpdateSourceTrigger=LostFocus}" VerticalAlignment="Top" Width="120" Grid.RowSpan="2" />
            </Grid>
        </GroupBox>
        <Label Content="Date de naissance" Height="28" HorizontalAlignment="Left" Margin="38,270,0,0" Name="labelDateNaissance" VerticalAlignment="Top" />
        <GroupBox Header="Genre" Height="91" HorizontalAlignment="Left" Margin="24,317,0,0" Name="groupBoxGenre" VerticalAlignment="Top" Width="79">
            <Grid>
                <RadioButton Content="M" Height="16" HorizontalAlignment="Left" Margin="18,19,0,0" Name="radioButtonM" IsChecked="{Binding Path=Genre, Mode=TwoWay, UpdateSourceTrigger=LostFocus}" VerticalAlignment="Top" IsEnabled="True" Checked="radioButtonM_Checked" />
                <RadioButton Content="F" Height="16" HorizontalAlignment="Left" Margin="18,41,0,0" Name="radioButtonF" IsChecked="{Binding Path=Genre, Mode=TwoWay, UpdateSourceTrigger=LostFocus}" VerticalAlignment="Top" />
            </Grid>
        </GroupBox>
        <GroupBox Header="Contact" Height="132" HorizontalAlignment="Left" Margin="125,317,0,0" Name="groupBoxContact" VerticalAlignment="Top" Width="282">
            <Grid>
                <Label Content="Mobile" Height="28" HorizontalAlignment="Left" Margin="14,14,0,0" Name="labelMobile" VerticalAlignment="Top" />
                <Label Content="Fixe" Height="28" HorizontalAlignment="Left" Margin="14,46,0,0" Name="labelFixe" VerticalAlignment="Top" />
                <Label Content="Mail" Height="28" HorizontalAlignment="Left" Margin="14,75,0,0" Name="labelMail" VerticalAlignment="Top" />
                <TextBox Height="23" HorizontalAlignment="Left" Margin="69,16,0,0" Name="txtMobile" Text="{Binding Path=Mobile, Mode=TwoWay, UpdateSourceTrigger=LostFocus}" VerticalAlignment="Top" Width="120" />
                <TextBox Height="23" HorizontalAlignment="Left" Margin="69,46,0,0" Name="txtFixe" Text="{Binding Path=Fixe, Mode=TwoWay, UpdateSourceTrigger=LostFocus}" VerticalAlignment="Top" Width="120" />
                <TextBox Height="23" HorizontalAlignment="Left" Margin="69,80,0,0" Name="txtMail" Text="{Binding Path=Mail, Mode=TwoWay, UpdateSourceTrigger=LostFocus}" VerticalAlignment="Top" Width="120" />
            </Grid>
        </GroupBox>
        <Label Content="N° de TVA" Height="28" HorizontalAlignment="Left" Margin="30,470,0,0" Name="labelNTVA" VerticalAlignment="Top" />
        <DatePicker Height="25" HorizontalAlignment="Left" Margin="162,270,0,0" Name="txtDateNaissance" Text="{Binding Path=DateNaissance, Mode=TwoWay, UpdateSourceTrigger=LostFocus}" VerticalAlignment="Top" Width="229" />
        <TextBox Height="23" HorizontalAlignment="Left" Margin="115,472,0,0" Name="txtNTVA" Text="{Binding Path=NTVA, Mode=TwoWay, UpdateSourceTrigger=LostFocus}" VerticalAlignment="Top" Width="120" />
        <Button Content="Enregistrer" Height="38" HorizontalAlignment="Left" Margin="302,470,0,0" Name="btnEnregistrer" VerticalAlignment="Top" Width="75" Click="btnEnregistrer_Click" Background="White" />
    </Grid>
</Window>
